import type { SelectOption } from 'naive-ui'
const list: SelectOption[] = [
  {
    label: '审核中',
    value: 'APPLY',
    color: '#f0a020'
  },
  {
    label: '审核通过',
    value: 'SUCCESS',
    color: '#54c417'
  },
  {
    label: '审核拒绝',
    value: 'ERROR',
    color: '#d03050'
  }
]

export default list

export function getStatusName(value: string) {
  const info = list.find((el: SelectOption) => el.value === value)
  return info?.label || value
}

export function getStatusColor(value: string) {
  const info = list.find((el: SelectOption) => el.value === value)
  return info?.color || value
}
